(function(){var h=void 0,i=!0,k=null,n=!1;function p(a){return function(){return this[a]}}var q,t=this;function u(a,b,c){a=a.split(".");c=c||t;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&v(b)?c[d]=b:c=c[d]?c[d]:c[d]={}}
function w(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function v(a){return a!==h}function x(a){return a!=k}function aa(a){var b=w(a);return"array"==b||"object"==b&&"number"==typeof a.length}function y(a){return"string"==typeof a}function ba(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}var z="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function da(a,b,c){return a.call.apply(a.bind,arguments)}
function ea(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function A(a,b,c){A=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?da:ea;return A.apply(k,arguments)}var fa=Date.now||function(){return+new Date};
function B(a,b){function c(){}c.prototype=b.prototype;a.e=b.prototype;a.prototype=new c};function ga(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function ha(a){if(!ia.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ja,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ka,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(la,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ma,"&quot;"));return a}var ja=/&/g,ka=/</g,la=/>/g,ma=/\"/g,ia=/[&<>\"]/;var C,na,oa,pa;function qa(){return t.navigator?t.navigator.userAgent:k}pa=oa=na=C=n;var ra;if(ra=qa()){var sa=t.navigator;C=0==ra.lastIndexOf("Opera",0);na=!C&&(-1!=ra.indexOf("MSIE")||-1!=ra.indexOf("Trident"));oa=!C&&-1!=ra.indexOf("WebKit");pa=!C&&!oa&&!na&&"Gecko"==sa.product}var ta=C,D=na,ua=pa,va=oa;function wa(){var a=t.document;return a?a.documentMode:h}var xa;
a:{var ya="",za;if(ta&&t.opera)var Aa=t.opera.version,ya="function"==typeof Aa?Aa():Aa;else if(ua?za=/rv\:([^\);]+)(\)|;)/:D?za=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:va&&(za=/WebKit\/(\S+)/),za)var Ba=za.exec(qa()),ya=Ba?Ba[1]:"";if(D){var Ca=wa();if(Ca>parseFloat(ya)){xa=String(Ca);break a}}xa=ya}var Da={};
function E(a){var b;if(!(b=Da[a])){b=0;for(var c=ga(String(xa)).split("."),d=ga(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",j=d[f]||"",l=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var s=l.exec(g)||["","",""],m=r.exec(j)||["","",""];if(0==s[0].length&&0==m[0].length)break;b=((0==s[1].length?0:parseInt(s[1],10))<(0==m[1].length?0:parseInt(m[1],10))?-1:(0==s[1].length?0:parseInt(s[1],10))>(0==m[1].length?0:parseInt(m[1],10))?1:0)||((0==s[2].length)<
(0==m[2].length)?-1:(0==s[2].length)>(0==m[2].length)?1:0)||(s[2]<m[2]?-1:s[2]>m[2]?1:0)}while(0==b)}b=Da[a]=0<=b}return b}var Ea=t.document,Fa=!Ea||!D?h:wa()||("CSS1Compat"==Ea.compatMode?parseInt(xa,10):5);function Ga(a,b){for(var c in a)b.call(h,a[c],c,a)}function Ha(a){var b=0,c;for(c in a)b++;return b}function Ia(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}var Ja="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ka(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ja.length;f++)c=Ja[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var F=Array.prototype,La=F.indexOf?function(a,b,c){return F.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(y(a))return!y(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ma=F.forEach?function(a,b,c){F.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Na=F.map?function(a,b,c){return F.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=y(a)?a.split(""):
a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};function Oa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Pa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if("array"==w(d)||(e=aa(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,j=0;j<g;j++)a[f+j]=d[j];else a.push(d)}}function Qa(a,b,c,d){F.splice.apply(a,Ra(arguments,1))}
function Ra(a,b,c){return 2>=arguments.length?F.slice.call(a,b):F.slice.call(a,b,c)};function G(a,b){this.width=a;this.height=b}G.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};G.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};G.prototype.scale=function(a,b){this.width*=a;this.height*="number"==typeof b?b:a;return this};function Sa(a,b){var c;c=a.className;c=y(c)&&c.match(/\S+/g)||[];for(var d=Ra(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=La(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};var Ta=!D||D&&9<=Fa;!ua&&!D||D&&D&&9<=Fa||ua&&E("1.9.1");var Ua=D&&!E("9");function Va(a,b){Ga(b,function(c,b){"style"==b?a.style.cssText=c:"class"==b?a.className=c:"for"==b?a.htmlFor=c:b in Wa?a.setAttribute(Wa[b],c):0==b.lastIndexOf("aria-",0)||0==b.lastIndexOf("data-",0)?a.setAttribute(b,c):a[b]=c})}var Wa={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Xa(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Ta&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ha(g.name),'"');if(g.type){f.push(' type="',ha(g.type),'"');var j={};Ka(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(y(g)?f.className=g:"array"==w(g)?Sa.apply(k,[f].concat(g)):Va(f,g));2<d.length&&Ya(e,f,d);return f}
function Ya(a,b,c){function d(c){c&&b.appendChild(y(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];aa(f)&&!(ba(f)&&0<f.nodeType)?Ma(Za(f)?Oa(f):f,d):d(f)}}var $a={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ab={IMG:" ",BR:"\n"};
function bb(a){if(Ua&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];cb(a,b,i);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Ua||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function cb(a,b,c){if(!(a.nodeName in $a))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in ab)b.push(ab[a.nodeName]);else for(a=a.firstChild;a;)cb(a,b,c),a=a.nextSibling}function Za(a){if(a&&"number"==typeof a.length){if(ba(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==w(a))return"function"==typeof a.item}return n};D&&E("9");!va||E("528");ua&&E("1.9b")||D&&E("8")||ta&&E("9.5")||va&&E("528");ua&&!E("8")||D&&E("9");function db(a){if("function"!=w(a))if(a&&"function"==typeof a.handleEvent)a=A(a.handleEvent,a);else throw Error("Invalid listener argument");t.setTimeout(a,10)};function eb(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function fb(a){this.da=a}fb.prototype.serialize=function(a){var b=[];gb(this,a,b);return b.join("")};
function gb(a,b,c){switch(typeof b){case "string":hb(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==k){c.push("null");break}if("array"==w(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],gb(a,a.da?a.da.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),hb(f,
c),c.push(":"),gb(a,a.da?a.da.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var ib={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},jb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function hb(a,b){b.push('"',a.replace(jb,function(a){if(a in ib)return ib[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return ib[a]=e+b.toString(16)}),'"')};function kb(a,b){this.c=a;this.rc=b||[]}u("iSpring.ios.mobile.MobileAppCommand",kb,h);kb.prototype.id=function(){return this[z]||(this[z]=++ca)};function H(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}H.prototype.BYTES_PER_ELEMENT=8;H.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};H.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{H.BYTES_PER_ELEMENT=8}catch(lb){}H.prototype.BYTES_PER_ELEMENT=H.prototype.BYTES_PER_ELEMENT;H.prototype.set=H.prototype.set;H.prototype.toString=H.prototype.toString;u("Float64Array",H,h)};function I(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}I.prototype.BYTES_PER_ELEMENT=4;I.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};I.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(I.BYTES_PER_ELEMENT=4,I.prototype.BYTES_PER_ELEMENT=I.prototype.BYTES_PER_ELEMENT,I.prototype.set=I.prototype.set,I.prototype.toString=I.prototype.toString,u("Float32Array",I,h));new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function mb(){var a;var b=window.location.search.substr(1);if(b){a={};for(var b=b.split("&"),c=0;c<b.length;++c){var d=b[c].split("=");if(2==d.length){var e=decodeURIComponent(d[0].replace(/\+/g," ")),d=decodeURIComponent(d[1].replace(/\+/g," ")),e=e.toLowerCase();a[e]=d}}}else a={};return a}function nb(){try{ob||(window.open("","_self",""),window.close())}catch(a){}};function pb(a,b,c){"array"==w(b)||(b=[b]);var d,e,f=n;Ma(b,function(b){var j=a.indexOf(b,c);if(0<=j&&(!v(d)||j<d))d=j,e=b,f=i});return f?new qb(e,d):k}function qb(a,b){this.sb=a;this.ca=b};var rb;rb=n;var sb=qa();sb&&-1!=sb.indexOf("Firefox")&&(rb=i);var tb=rb;var ub;var vb=mb().user_agent;ub=vb?vb:qa()||"";var wb=mb().small_screen,xb=-1!=ub.toLowerCase().indexOf("chrome"),yb=-1!=ub.toLowerCase().indexOf("android"),zb,Ab=ub.toLowerCase();zb=-1!=Ab.indexOf("android")||-1!=Ab.indexOf("mobile")||-1!=Ab.indexOf("touch")||wb;var Bb=D&&-1!=ub.toLowerCase().indexOf("touch"),ob=yb&&!xb&&!tb&&!ta;
if(!wb&&!window._ispringFullsizeSkin){var Cb=wb?new G(document.documentElement.clientWidth,document.documentElement.clientHeight):Bb?new G(screen.width*screen.deviceXDPI/screen.logicalXDPI,screen.height*screen.deviceYDPI/screen.logicalYDPI):ob?new G(screen.width/window.devicePixelRatio,screen.height/window.devicePixelRatio):!zb&&tb||D?new G(screen.width*window.devicePixelRatio,screen.height*window.devicePixelRatio):new G(screen.width,screen.height);Math.min(Cb.width,Cb.height)};function J(){}u("ispring.events.IEventDispatcher",J,h);J.prototype.addHandler=function(){};J.prototype.addHandler=J.prototype.addHandler;J.prototype.removeHandler=function(){};J.prototype.removeHandler=J.prototype.removeHandler;function Db(){this.Oa=[];this.n=[]}Db.prototype.push=function(a,b){if(!(b in this.n)){this.n[b]=[];var c=this.Oa,d;d=0;for(var e=c.length,f;d<e;){var g=d+e>>1,j;j=b>c[g]?1:b<c[g]?-1:0;0<j?d=g+1:(e=g,f=!j)}d=f?d:~d;0>d&&Qa(c,-(d+1),0,b)}this.n[b].push(a)};function Eb(a){var b=[],c=a.n;a=a.Oa;for(var d=0;d<a.length;++d)Pa(b,c[a[d]]);return b};function K(){this.p=new Db}K.prototype.addHandler=function(a,b,c){this.p.push({wa:a,va:b},c||0)};K.prototype.addHandler=K.prototype.addHandler;K.prototype.removeHandler=function(a,b,c){c=c||0;var d=c in this.p.n?this.p.n[c]:[],e=d.length,f=0;for(;f<e;++f){var g=d[f];if(g.wa==a&&g.va==b){a=this.p;c in a.n&&F.splice.call(a.n[c],f,1);break}}};K.prototype.removeHandler=K.prototype.removeHandler;
K.prototype.qb=function(a,b,c){c=c||0;c=c in this.p.n?this.p.n[c]:[];for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.wa==a&&f.va==b)return i}return n};K.prototype.hasHandler=K.prototype.qb;K.prototype.Va=function(a){for(var b=Eb(this.p),c=b.length,d=0;d<c;++d){var e=b[d];if(-1!=La(Eb(this.p),e))try{e.wa.apply(e.va,arguments)}catch(f){(window._ispringDebug==i||"1"==mb().isdebug)&&alert(f)}}};K.prototype.dispatch=K.prototype.Va;function L(a,b){this.M=a;this.t=b}L.prototype.id=p("M");L.prototype.description=p("t");function M(){this.F=[]}M.prototype.count=function(){return this.F.length};function N(a,b){a.F.push(b)}M.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.F[a]};function O(){this.F=new M}O.prototype.choices=p("F");function Fb(a,b,c,d){for(var e=d?",":"[,]",f=d?".":"[.]",g=[],j=0;j<a.count();++j){var l=a.getMatch(j),r=l.premise(),l=l.response(),s=b.getChoiceIndex(r),m=c.getChoiceIndex(l),r=d?Gb(s,i):s+"_"+r.textRange().text(),l=d?Gb(m,n):m+"_"+l.textRange().text(),r=P(r)+f+P(l);g.push(r)}return g.join(e)}function Hb(a,b,c){for(var d=c?",":"[,]",e=[],f=0;f<b.count();++f){var g=b.getChoice(f),j=g.textRange().text(),g=a.getChoiceIndex(g);e.push(P(c?Gb(g,i):g+"_"+j))}return e.join(d)}
function P(a){a=ga(a);return a=a.replace(/[^\w-]/g,"_")}function Gb(a,b){a=b?a:36-a-1;return 0<=a&&36>a?"0123456789abcdefghijklmnopqrstuvwxyz"[a]:"0"};function Ib(a){this.M=a}q=Ib.prototype;q.t="";q.d=k;q.b=k;q.O="unanticipated";q.Pa=0;q.Aa=k;q.u=k;q.ta=k;q.k=k;q.id=p("M");q.type=p("c");q.description=p("t");q.s=p("d");function Jb(a,b){a.d=b}q.D=p("b");function Kb(a,b){a.b=b}q.result=p("O");q.score=p("Pa");q.T=function(a){this.Pa=a};q.awardedScore=p("Aa");q.duration=p("u");q.ea=function(a){this.u=a};q.za=p("ta");function Lb(){}Lb.prototype.create=function(a){if(!a.submitted())return k;var b=a.slide().id(),b=new Ib(P(b));this.a(b,a);return b};Lb.prototype.a=function(a,b){var c=b.slide().description().text();a.t=c;b.visited()&&(a.ea(b.viewDuration()),c=b.firstVisitTime(),a.ta=c)};function Mb(a){return P(a)};function Q(){}B(Q,Lb);Q.prototype.a=function(a,b){Q.e.a.call(this,a,b);a.O="neutral"};function Nb(a){this.l=a}B(Nb,Q);Nb.prototype.l=n;Nb.prototype.a=function(a,b){Nb.e.a.call(this,a,b);a.c="sequencing";var c=b.slide().items(),d=Hb(c,b.items(),this.l);a.d=d;a.b=[d];c=this.h(c);a.k=c};Nb.prototype.h=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};var R={kc:"slidePool",vb:"authorizationForm",Kb:"informationSlide",Mb:"introSlide",fc:"resultSlide",Ib:"hotspotQuestion",Qb:"likertScaleQuestion",oc:"wordBankQuestion",Cb:"essayQuestion",mc:"typeInQuestion",jc:"shortAnswerQuestion",Db:"fillInTheBlankQuestion",Eb:"fillInTheBlankSurveyQuestion",Zb:"numericQuestion",$b:"numericSurveyQuestion",ic:"sequenceQuestion",ec:"rankingQuestion",nc:"whichWordQuestion",Ub:"multipleChoiceTextQuestion",Vb:"multipleChoiceTextSurveyQuestion",Tb:"multipleChoiceQuestion",
Wb:"multipleResponseQuestion",cc:"pickOneQuestion",bc:"pickManyQuestion",lc:"trueFalseQuestion",pc:"yesNoQuestion",Rb:"matchingQuestion",Sb:"matchingSurveyQuestion"};u("ispring.quiz.slides.SlideType",R,h);function Ob(a){return"slidePool"!=a&&"informationSlide"!=a&&"introSlide"!=a&&"resultSlide"!=a}u("SLIDE_POOL","slidePool",R);u("INFORMATION_SLIDE","informationSlide",R);u("INTRO_SLIDE","introSlide",R);u("HOTSPOT_QUESTION","hotspotQuestion",R);u("LIKERT_SCALE_QUESTION","likertScaleQuestion",R);
u("WORD_BANK_QUESTION","wordBankQuestion",R);u("RESULT_SLIDE","resultSlide",R);u("ESSAY_QUESTION","essayQuestion",R);u("TYPE_IN_QUESTION","typeInQuestion",R);u("SHORT_ANSWER_QUESTION","shortAnswerQuestion",R);u("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",R);u("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",R);u("NUMERIC_QUESTION","numericQuestion",R);u("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",R);u("SEQUENCE_QUESTION","sequenceQuestion",R);
u("RANKING_QUESTION","rankingQuestion",R);u("WHICH_WORD_QUESTION","whichWordQuestion",R);u("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",R);u("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",R);u("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",R);u("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",R);u("PICK_ONE_QUESTION","pickOneQuestion",R);u("PICK_MANY_QUESTION","pickManyQuestion",R);u("TRUE_FALSE_QUESTION","trueFalseQuestion",R);
u("YES_NO_QUESTION","yesNoQuestion",R);u("MATCHING_QUESTION","matchingQuestion",R);u("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",R);var Pb={yb:"correct",ac:"partiallyCorrect",Jb:"incorrect",Yb:"notAnswered"};u("ispring.quiz.session.slides.questions.graded.review.GradedQuestionStatus",Pb,h);u("CORRECT","correct",Pb);u("PARTIALLY_CORRECT","partiallyCorrect",Pb);u("INCORRECT","incorrect",Pb);u("NOT_ANSWERED","notAnswered",Pb);function S(){}B(S,Lb);S.prototype.a=function(a,b){S.e.a.call(this,a,b);var c=b.slide();a.T(c.maxScore());if(c=b.review()){var d=c.awardedScore();a.Aa=d;d="unanticipated";switch(c.status()){case "correct":d="correct";break;case "incorrect":d="incorrect";break;case "partiallyCorrect":d="partially"}a.O=d}};var T={Bb:"equal",Ab:"notEqual",Gb:"greaterThan",Ob:"lessThan",Hb:"greaterThanOrEqual",Pb:"lessThanOrEqual",wb:"between"};u("ispring.quiz.slides.questions.graded.answers.numeric.ComparisonOperation",T,h);u("EQUALS","equal",T);u("DIFFERS","notEqual",T);u("GREATER_THAN","greaterThan",T);u("LESS_THAN","lessThan",T);u("GREATER_THAN_OR_EQUALS","greaterThanOrEqual",T);u("LESS_THAN_OR_EQUALS","lessThanOrEqual",T);u("BETWEEN","between",T);function Qb(){}B(Qb,S);Qb.prototype.a=function(a,b){Qb.e.a.call(this,a,b);a.c="fill-in";var c=b.slide(),d=b.initiated()?b.getAnswer().toString():"",c=this.o(c.answers());a.d=d;a.b=[c]};
Qb.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d="",e=a.getAnswer(c),f=e.comparisonOperation();if("between"==f)d=e,d="between "+d.leftOperand()+" and "+d.rightOperand();else switch(f){case "notEqual":d="not equal to "+e.operand();break;case "equal":d="equal to "+e.operand();break;case "greaterThan":d="greater than "+e.operand();break;case "greaterThanOrEqual":d="greater than or equal to "+e.operand();break;case "lessThan":d="less than "+e.operand();break;case "lessThanOrEqual":d=
"less than or equal to "+e.operand()}b.push(d)}return b.join("[,]")};function Rb(){}B(Rb,Q);Rb.prototype.a=function(a,b){Rb.e.a.call(this,a,b);a.c="other";var c=this.ka(b.blanks());a.d=c;a.b=[c]};Rb.prototype.ka=function(a){for(var b=[],c=0;c<a.count();++c)b.push(a.getSection(c).answer());return b.join("[,]")};function Sb(a){this.l=a}B(Sb,S);Sb.prototype.l=n;Sb.prototype.a=function(a,b){Sb.e.a.call(this,a,b);a.c="sequencing";var c=b.slide().items(),d=Hb(c,b.items(),this.l),e=Hb(c,c,this.l);a.d=d;a.b=[e];c=this.h(c);a.k=c};Sb.prototype.h=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};function Tb(){}B(Tb,S);Tb.prototype.a=function(a,b){Tb.e.a.call(this,a,b);a.c="other";for(var c=[],d=[],e=b.placeholders(),f=0;f<e.count();++f){var g=e.getSection(f),j=g.answer();j&&(c.push(j.textRange().text()),g=g.section().answers(),d.push(g.getChoice(0).textRange().text()))}d=d.join("[,]");a.d=c.join("[,]");a.b=[d]};function Ub(){}B(Ub,Q);Ub.prototype.a=function(a,b){Ub.e.a.call(this,a,b);a.c="fill-in";var c=b.initiated()?b.answer().toString():"";a.d=c;a.b=[c]};function Vb(){this.F=new M;this.Ba=[]}B(Vb,O);function U(){}B(U,Q);U.prototype.a=function(a,b){U.e.a.call(this,a,b);a.c="choice";var c=b.slide().choices(),d=b.choices(),e=this.ja(c,d);a.d=e;a.b=[e];c=this.h(c,d);a.k=c};
U.prototype.h=function(a,b){for(var c=new Vb,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var g=0;g<b.count();++g){var j=b.getChoiceState(g);if(j.choice()===f){f=j;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new L(this.K(f,d),g);N(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.Ba[d]=e}return c};
U.prototype.ja=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){var f=a.getChoiceIndex(e.choice()),e=this.K(e,f);c.push(e)}}return c.join("[,]")};U.prototype.K=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return P(d)};function Wb(){this.Qa=new M;this.Sa=new M};function Xb(a){this.l=a}B(Xb,Q);Xb.prototype.a=function(a,b){Xb.e.a.call(this,a,b);a.c="matching";var c=b.slide(),d=Fb(b.matches(),c.premises(),c.responses(),this.l);a.d=d;a.b=[d];c=this.ga(c);a.k=c};Xb.prototype.ga=function(a){var b=new Wb,c=a.premises();a=a.responses();for(var d=0;d<c.count();++d){var e=c.getChoice(d).textRange().text(),f=a.getChoice(d).textRange().text();N(b.Qa,new L(P(d+"_"+e),e));N(b.Sa,new L(P(d+"_"+f),f))}return b};function V(){}B(V,S);V.prototype.a=function(a,b){V.e.a.call(this,a,b);a.c="choice";var c=b.slide().responses(),d=this.L(c,b.responses()),e=this.o(c);a.d=d;a.b=[e];c=this.h(c);a.k=c};V.prototype.h=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};
V.prototype.L=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.gradedChoice(),g=f.textRange().text();e.selected()&&c.push(Mb(a.getChoiceIndex(f)+"_"+g))}return c.join("[,]")};V.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getGradedChoice(c);d.correct()&&b.push(Mb(c+"_"+d.textRange().text()))}return b.join("[,]")};function Yb(){}B(Yb,S);Yb.prototype.a=function(a,b){Yb.e.a.call(this,a,b);a.c="other";for(var c=[],d=[],e=b.choices(),f=0;f<e.count();++f){var g=e.getSection(f),j=g.choices(),g=g.section().choices();this.fa(j,c);for(var j=g,g=d,l=0;l<j.count();++l){var r=j.getGradedChoice(l);r.correct()&&g.push(r.textRange().text())}}a.d=c.join("[,]");a.b=[d.join("[,]")]};
Yb.prototype.fa=function(a,b){for(var c=0;c<a.count();++c){var d=a.getChoiceState(c);if(d.selected()){b.push(d.gradedChoice().textRange().text());break}}};function W(){}B(W,S);W.prototype.a=function(a,b){W.e.a.call(this,a,b);a.c="choice";var c=b.slide().choices(),d=this.L(c,b.choices()),e=this.o(c);a.d=d;a.b=[e];c=this.h(c);a.k=c};W.prototype.h=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};
W.prototype.L=function(a,b){for(var c="",d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){c=a.getChoiceIndex(e.gradedChoice())+"_"+e.gradedChoice().textRange().text();break}}return P(c)};W.prototype.o=function(a){for(var b="",c=0;c<a.count();++c){var d=a.getGradedChoice(c);if(d.correct()){b=c+"_"+d.textRange().text();break}}return P(b)};function Zb(){}B(Zb,Q);Zb.prototype.a=function(a,b){Zb.e.a.call(this,a,b);a.c="fill-in";var c=b.answer();a.d=c;c=[b.answer()];a.b=c};function X(){}B(X,Q);X.prototype.a=function(a,b){X.e.a.call(this,a,b);a.c="choice";var c=b.slide().choices(),d=b.choices(),e=this.ja(c,d);a.d=e;a.b=[e];c=this.h(c,d);a.k=c};
X.prototype.h=function(a,b){for(var c=new Vb,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var g=0;g<b.count();++g){var j=b.getChoiceState(g);if(j.choice()===f){f=j;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new L(this.K(f,d),g);N(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.Ba[d]=e}return c};X.prototype.ja=function(a,b){for(var c=0;c<b.count();++c){var d=b.getChoiceState(c);if(d.selected())return c=a.getChoiceIndex(d.choice()),this.K(d,c)}return P("")};
X.prototype.K=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return P(d)};function $b(){}B($b,X);function ac(a){this.qa=a}B(ac,S);ac.prototype.a=function(a,b){ac.e.a.call(this,a,b);a.c="fill-in";var c=b.slide(),d=this.o(c.answers()),e=b.answer();a.d=e;a.b=[d];if(this.qa){d=[];for(e=0;e<c.answers().count();++e){var f=c.answers().getAnswer(e);d.push(f.text())}a.b=d}};ac.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getAnswer(c);b.push(d.text())}return b.join("[,]")};function bc(){}B(bc,Q);bc.prototype.a=function(a,b){bc.e.a.call(this,a,b);a.c="other";for(var c=[],d=b.choices(),e=0;e<d.count();++e)this.fa(d.getSection(e).choices(),c);c=c.join("[,]");a.d=c;a.b=[c]};bc.prototype.fa=function(a,b){for(var c=0;c<a.count();++c){var d=a.getChoiceState(c);if(d.selected()){b.push(d.choice().textRange().text());break}}};function cc(){}B(cc,S);cc.prototype.a=function(a,b){cc.e.a.call(this,a,b);a.c="other";var c=this.ka(b.blanks());a.d=c.s;a.b=[c.D]};cc.prototype.ka=function(a){for(var b=[],c=[],d=0;d<a.count();++d){var e=[],f=a.getSection(d),g=f.section().answers();b.push(f.answer());for(f=0;f<g.count();++f)e.push(g.getAnswer(f).text());c.push(e.join("[,]"))}return{s:b.join("[,]"),D:c.join("[.]")}};function dc(){}B(dc,S);dc.prototype.a=function(a,b){dc.e.a.call(this,a,b);a.c="other";var c=b.slide(),d=this.L(b.points()),c=this.o(c.hotAreas());a.d=d;a.b=[c]};dc.prototype.L=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getPoint(c);b.push(d.x()+"_"+d.y())}return b.join("[,]")};dc.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getHotArea(c);b.push(d.type()+"_"+d.left()+"_"+d.top()+"_"+d.width()+"_"+d.height())}return b.join("[,]")};function ec(){}B(ec,Q);ec.prototype.a=function(a,b){ec.e.a.call(this,a,b);a.c="long-fill-in";var c=b.answer();a.d=c;c=[b.answer()];a.b=c};function fc(a){this.l=a}B(fc,S);fc.prototype.l=n;fc.prototype.a=function(a,b){fc.e.a.call(this,a,b);a.c="matching";var c=b.slide(),d=Fb(b.matches(),c.premises(),c.responses(),this.l),e=Fb(c.matches(),c.premises(),c.responses(),this.l);a.d=d;a.b=[e];c=this.ga(c);a.k=c};fc.prototype.ga=function(a){var b=new Wb;a=a.matches();for(var c=0;c<a.count();++c){var d=a.getMatch(c),e=d.premise().textRange().text(),d=d.response().textRange().text();N(b.Qa,new L(P(c+"_"+e),e));N(b.Sa,new L(P(c+"_"+d),d))}return b};function gc(){}B(gc,Q);gc.prototype.a=function(a,b){gc.e.a.call(this,a,b);a.c="other";for(var c=[],d=b.placeholders(),e=0;e<d.count();++e){var f=d.getSection(e).answer();f&&c.push(f.textRange().text())}c=c.join("[,]");a.d=c;a.b=[c]};function hc(){}B(hc,Q);hc.prototype.a=function(a,b){hc.e.a.call(this,a,b);a.c="choice";for(var c=b.slide(),d=b.statements(),e=d.count(),f=[],c=c.statements(),g=0;g<e;++g){var j=d.getStatementState(g),l=j.scale(),j=j.statement();l&&f.push(Mb(c.getChoiceIndex(j)+"_"+l.textRange().text()))}d=f.join("[,]");a.d=d;a.b=[d];d=this.h(c);a.k=d};hc.prototype.h=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};function ic(a){this.qa=a}B(ic,W);ic.prototype.a=function(a,b){ic.e.a.call(this,a,b);if(this.qa){a.c="true-false";for(var c=b.slide().choices(),d=b.choices(),e=c.getGradedChoice(0).correct()?"t":"f",f="t"==e?"f":"t",c=c.getGradedChoice(0).correct()?c.getGradedChoice(0).id():c.getGradedChoice(1).id(),g=k,j=0;2>j;++j){var l=d.getChoiceState(j);if(l.selected()){g=l.choice().id()==c?e:f;break}}a.d=g;a.b=[e]}};function jc(a,b){var c="1.2"==b||"aicc"==b;switch(a){case "essayQuestion":return new ec;case "likertScaleQuestion":return new hc;case "hotspotQuestion":return new dc;case "fillInTheBlankQuestion":return new cc;case "wordBankQuestion":return new Tb;case "typeInQuestion":return new ac(c);case "fillInTheBlankSurveyQuestion":return new Rb;case "shortAnswerQuestion":return new Zb;case "whichWordQuestion":return new gc;case "numericQuestion":return new Qb;case "multipleChoiceQuestion":return new W;case "multipleResponseQuestion":return new V;
case "numericSurveyQuestion":return new Ub;case "multipleChoiceTextQuestion":return new Yb;case "sequenceQuestion":return new Sb(c);case "multipleChoiceTextSurveyQuestion":return new bc;case "rankingQuestion":return new Nb(c);case "pickManyQuestion":return new U;case "matchingQuestion":return new fc(c);case "matchingSurveyQuestion":return new Xb(c);case "pickOneQuestion":return new X;case "trueFalseQuestion":return new ic(c);case "yesNoQuestion":return new $b}return k};var kc={dc:"prompt",tb:"always",Xb:"never"};u("ispring.presenter.presentation.settings.PresentationResumeMode",kc,h);u("PROMPT_TO_RESUME","prompt",kc);u("ALWAYS_RESUME","always",kc);u("NEVER_RESUME","never",kc);function lc(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function mc(a,b,c,d,e,f){this.A=a;this.lb=b;this.nb=e;this.gb=f;this.q={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.q[b[0]]=e,0<e&&++this.J;this.H={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.H[c[0]]=b,0<b&&++this.J}q=mc.prototype;q.J=0;q.slidesWeight=function(){return 0<this.A?this.lb:0};q.slidesToView=p("A");q.totalScore=p("nb");q.passingScore=p("gb");function nc(a,b,c){this.jb=a;this.ib=b;this.pa=c}
nc.prototype.create=function(){var a=0,b=[],c=this.jb,d=this.ib,e=new Ib(c.id()+"_"+a),a=a+1;e.c="choice";var f;if(x(c.message())){var g;a:if(g=c.message().text(),f="\r",0==g.length)g="";else{f!=k||(f="");var j=0,l="",r=g.length;do{var s=pb(g,["<p>","<p "],j);if(s&&s.ca>j){var j=g.substr(j,s.ca-j),m=Xa("DIV");m.innerHTML=j;l+=(m.textContent||m.innerText||bb(m))+f;j=s.ca}if(m=pb(g,["</p>","</p >"],j)){var s=m.ca+m.sb.length-j,cd=g.substr(j,s),m=Xa("DIV");m.innerHTML=cd;l+=(m.textContent||m.innerText||
bb(m))+f;j+=s}else{m=Xa("DIV");m.innerHTML=g.substr(j,r-j);g=l+(m.textContent||m.innerText||bb(m));break a}}while(j<r);g=l}e.t=g;f=c.message().replies();x(c.speech())&&0<c.speech().length&&(a=new Ib(c.id()+"_"+a),a.c="other",g=c.speech(),a.t=g,a.T(c.score()),a.O="neutral",oc(this,a),b.push(a))}else a=c.speech(),e.t=a,f=c.replies();0==f.count()&&(e.c="other");a=k;l=-1;g=[];for(r=0;r<f.count();r++)d!=k&&f.getReply(r)==d&&(l=r),g.push(pc(r+"_"+f.getReply(r).text()));d!=k&&(a=pc(l+"_"+d.text()));d=f;
f=new O;for(l=0;l<d.count();++l)r=d.getReply(l).text(),N(f.choices(),new L(pc(l+"_"+r),r));e.k=f;e.d=a;e.b=g;e.T(c.score());e.O="neutral";oc(this,e);b.push(e);return b};function oc(a,b){a.pa!=k&&(b.ta=new Date(a.pa),b.ea(fa()-a.pa))}function pc(a){a=ga(a);return a=a.replace(/[^\w-]/g,"_")};var qc={gc:"resumePlayback",Fb:"gotoSlide",zb:"delayStartup"};u("ispring.presenter.player.startup.PresentationStartup.Action",qc,h);u("RESUME_PLAYBACK","resumePlayback",qc);u("GOTO_SLIDE","gotoSlide",qc);u("DELAY_STARTUP","delayStartup",qc);var rc={Lb:"initializing",Nb:"inProgress",hc:"reviewing",xb:"completed",ub:"authorizating"};u("ispring.quiz.session.QuizState",rc,h);u("INITIALIZING","initializing",rc);u("IN_PROGRESS","inProgress",rc);u("REVIEWING","reviewing",rc);u("COMPLETED","completed",rc);u("AUTHORIZATING","authorizating",rc);function sc(a,b){this.sa=a;this.Ra=b;this.Ta=new K}q=sc.prototype;q.B=n;q.G=0;q.Z=0;q.$=-1;q.aa=0;q.ha=0;q.start=function(a){if(!this.B&&(this.aa=this.G=a||0,a=this.G>=this.sa,!a||!this.Ra))this.B=i,this.Z=fa(),a||(this.$=setTimeout(A(this.na,this),this.sa-this.G))};q.na=function(){this.Ra&&(this.stop(),this.aa=this.sa);this.Ta.Va()};q.stop=function(){this.B&&(this.B=n,0<this.$&&(clearTimeout(this.$),this.$=-1),this.ha=fa()-this.Z,this.aa=this.ha+this.G)};function tc(a,b,c,d,e){this.sc=a;this.$a=b;this.hb=c;this.xc=d;this.wc=e}tc.prototype.login=p("$a");tc.prototype.password=p("hb");function uc(a){this.fb=a};function vc(a){this.Ea=a}vc.prototype.pb=function(a,b,c){c=this.Ea.hasOwnProperty(a)?this.Ea[a]:c;if(v(c)){if(v(b)){a=this.Ya;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];a&&(d=a(d));c=c.replace(RegExp(d,"g"),e)}}return c}return""};vc.prototype.getMessage=vc.prototype.pb;vc.prototype.Ya=function(a){return"%"+a.toUpperCase()+"%"};function wc(a,b,c,d,e,f){this.tc=a;this.oa=b;this.Za=new vc(c);this.qc=d;this.vc=e;this.uc=f}wc.prototype.i18n=p("Za");function xc(a,b){var c=window.iSpring.LMSAPI;switch(a){case "1.2":return new c.Scorm12Api(b);case "2004":return new c.Scorm2004Api(b);case "aicc":return new c.AiccApi(b);case "tincan":return new c.TinCanApi(b);default:throw Error("unknown api");}};function yc(){function a(a){try{for(var b=0;255>b;++b){if(a.API)return a.API;var e=a.parent;if(!e||a==e)break;a=e}}catch(f){}return k}var b=window;return a(b)||b.opener&&a(b.opener)}function zc(a){var b=Math.floor(a/3600),c=Math.floor(a%3600/60);a=Math.floor(a%60);return(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)+":"+(10>a?"0"+a:a)}function Ac(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};function Bc(){}q=Bc.prototype;q.Wa=k;q.maxScore=k;q.awardedScore=k;q.ba=k;q.duration=k;function Cc(a,b,c,d){this.mb=a;this.ia=b;this.kb=c;this.ab=d}Cc.prototype.timeLimit=p("mb");Cc.prototype.message=p("ab");function Dc(a,b,c,d){this.ba=a;this.maxScore=v(b)?b:k;this.rb=v(c)?c:k;this.ya=v(d)?d:k}Dc.prototype.xa=function(){var a={};a[Ec]=this.ba;a[Fc]=this.maxScore;a[Gc]=this.rb;a[Hc]=this.ya;return a};var Ec="p",Fc="m",Gc="r",Hc="s";function Ic(){this.R=[];this.z={}}q=Ic.prototype;q.X=-1;q.u=0;q.Y=k;q.duration=p("u");q.ea=function(a){this.u=a};q.xa=function(){var a={};a[Jc]=this.u;a[Kc]=this.X;a[Lc]=this.R;a[Mc]=this.Y;var b={},c;for(c in this.z)b[c]=this.z[c].xa();a[Nc]=b;return a};var Kc="l",Lc="v",Jc="d",Mc="p",Nc="q";function Y(a,b,c){this.V=b;this.i=new Ic;this.I=new mc(c.slidesToView,c.slidesWeight,c.quizzes||{},c.scenarios||{},c.totalScore,c.passingScore);this.C=new Cc(1E3*c.timeLimit,c.exitOnTimeout,c.showMessageOnTimeout,c.timeoutMessage);this.m=new sc(this.C.timeLimit(),this.C.ia);a=c.tincan.auth;a=new wc("ispring://presentations/"+encodeURIComponent(c.presentationId),new uc(c.flags),c.tincan.i18n,c.scorm2004?c.scorm2004.edition:"",c.tincan.endPoint,new tc(a.type,a.login,a.password,a.name,a.email));this.Q=
"never"!=c.resumeMode;this.j=xc(b,a);this.W={}}q=Y.prototype;q.Ca=n;q.N=k;q.U=n;q.g=k;q.w=k;q.ra=n;q.v=k;q.r=k;var Oc=q.P=k;u("iSpring.LMS.create",function(a,b,c){return Oc=new Y(0,b,c)},h);u("iSpring.LMS.instance",function(){return Oc},h);Y.prototype.S=function(a){this.N=a;this.j.S(A(this.eb,this),A(this.cb,this))};Y.prototype.initialize=Y.prototype.S;
Y.prototype.eb=function(){var a=k,b,c=Pc(this.j.f,"cmi.suspend_data");if(c)a:{c=LZString.decompressFromBase64(c);try{b=eb(c);break a}catch(d){}b=k}else b=k;if(this.Q&&b){a=new Ic;a.u=Jc in b?b[Jc]:0;a.X=Kc in b?b[Kc]:-1;a.R=Lc in b?b[Lc]:[];a.Y=Mc in b?b[Mc]:k;c={};b=Nc in b?b[Nc]:{};for(var e in b)c[e]=new Dc(b[e][Ec],b[e][Fc],b[e][Gc],b[e][Hc]);a.z=c;this.w=a;e=this.w.duration();if(this.C.ia&&e>=this.C.timeLimit()){alert("You have already exceeded available time for viewing this content.");Ac();
nb();return}a=this.w.Y}this.Ca=i;this.N&&this.N(a)};Y.prototype.cb=function(){this.N&&this.N()};Y.prototype.start=function(a){this.Ca&&(this.g=a,this.U=i,this.j.start(a),a.startupEvent().addHandler(this.Ia,this),a.startupCompletedEvent().addHandler(this.Ja,this),a.closeWindowEvent().addHandler(this.Fa,this))};Y.prototype.start=Y.prototype.start;
Y.prototype.Ia=function(a){this.g.startupEvent().removeHandler(this.Ia,this);var b=this.Q&&this.w?this.w.X:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.g.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.Ja=function(a,b){this.g.startupCompletedEvent().removeHandler(this.Ja,this);this.ra=i;"resumePlayback"==a&&this.w&&(this.i=this.w);var c=this.i.duration();this.m.B||(this.m.Ta.addHandler(this.na,this),this.m.start(c));c=this.g.view().playbackController();c.slideChangeEvent().addHandler(this.la,this);c=c.currentSlideIndex();c==b&&this.la(c);this.Q&&this.g.stateChangedEvent().addHandler(this.Ka,this)};Y.prototype.Ua=function(){this.U&&Qc(this,this.Q&&(!this.ra||!Rc(this)))};
Y.prototype.closeLms=Y.prototype.Ua;function Qc(a){a.U&&(a.U=n,a.ra&&(a.m.stop(),Sc(a),a.g.view().playbackController().slideChangeEvent().removeHandler(a.la,a)),a.g.closeWindowEvent().removeHandler(a.Fa,a),a.g.stateChangedEvent().removeHandler(a.Ka,a),a.j.suspend())}q=Y.prototype;
q.la=function(a){if(this.v){var b=this.v;b.currentSessionChangedEvent().removeHandler(this.Ga,this);(b=b.currentSession())&&Tc(this,b);this.v=k}this.r&&(this.r.currentSessionChangedEvent().removeHandler(this.Ha,this),this.P!=k&&Uc(this),this.r=k);b=this.g.view().playbackController();if(a in this.I.q){var c=this.v=b.quizPlayer(),d=(c[z]||(c[z]=++ca))+"";d in this.W||(this.W[d]=i,(d=new Vc(Pc(this.j.f,"cmi.core.student_id"),Pc(this.j.f,"cmi.core.student_name"),""))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),
USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.Ga,this);(c=c.currentSession())&&Wc(this,c)}a in this.I.H&&(b=this.r=b.scenarioPlayer(),c=(b[z]||(b[z]=++ca))+"",c in this.W||(this.W[c]=i),c=b.currentSession(),c!=k&&Xc(this,c),b.currentSessionChangedEvent().addHandler(this.Ha,this));b=this.i.R;0<=La(b,a)||b.push(a);this.i.X=a;Yc(this)};
function Sc(a){var b=a.m.B?fa()-a.m.Z+a.m.G:a.m.aa,c=a.m.B?fa()-a.m.Z:a.m.ha;a.i.ea(b);Z(a.j.f,"cmi.core.session_time",zc(c/1E3));a.Q&&(b=a.g.persistState(),a.i.Y=b,b=a.j,a=(new fb(h)).serialize(a.i.xa()),a=LZString.compressToBase64(a),Z(b.f,"cmi.suspend_data",a))}
function Yc(a){var b=a.I;if(0<b.A||0<b.J){var c=Zc(a),d=b.totalScore()*c;a.j.T(c,0,b.totalScore(),d)}a.g.presentation().slides().count();b=a.j;c=a.I;c=!(0<c.A||0<c.J)?k:Zc(a)*c.totalScore()>=c.passingScore();d=Rc(a);c=c!==k?c:d;d="unknown";c===k||(d=b.oa.fb&(c?2:1)?c?"passed":"failed":c?"completed":"incomplete");Z(b.f,"cmi.core.lesson_status",d);Sc(a);a.j.ua()}
function Rc(a){var b=a.I,c=0<b.A?b.slidesToView():a.g.presentation().slides().count(),b=Ha(a.i.z)==Ha(b.q)+Ha(b.H);return a.i.R.length>=c&&b}function Zc(a){var b=a.I;if(!(0<b.A||0<b.J))return 0;var c=0,d=a.i.z,e;for(e in d)var f=d[e],g=parseInt(e,10),c=c+(f.ya!=k?f.ya:1)*((!(g in b.q)?k:b.q[g])!=k?!(g in b.q)?0:b.q[g]:!(g in b.H)?0:b.H[g]);d=0;0<b.A&&(d=a.g.presentation().slides().count(),d=a.i.R.length/d*b.slidesWeight());a=lc(Ia(b.q))+lc(Ia(b.H))+b.slidesWeight();return(c+d)/a}
q.Ha=function(){this.P!=k&&Uc(this);var a=this.r.currentSession();Xc(this,a)};function Xc(a,b){a.P=b;b.showTerminalSceneEvent().addHandler(a.Na,a);b.onReplySelectedEvent().addHandler(a.ma,a)}function Uc(a){var b=a.P;a.P=k;b.showTerminalSceneEvent().removeHandler(a.Na,a);b.onReplySelectedEvent().removeHandler(a.ma,a)}
q.Na=function(){var a=this.r.currentSession(),b=a.currentSceneState().scene();b!=k&&(x(b.speech())&&0<b.speech().length||x(b.message())&&0<b.message().text().length)&&this.ma();a.scenario().evaluationSettings().enabled()?(b=a.currentSceneState().scene().score(),b=new Dc(b>=a.scenario().evaluationSettings().passingScore(),100,b,b/100)):b=new Dc(i);var c=this.g.view().playbackController().currentSlideIndex();this.i.z[c+""]=b;b=new Bc;b.duration=a.duration();b.Wa=0;b.maxScore=100;b.awardedScore=a.currentSceneState().scene().score();
a.scenario().evaluationSettings().enabled()&&(b.ba=b.awardedScore>=a.scenario().evaluationSettings().passingScore());a.scenario().id();a.scenario().title();Yc(this)};
q.ma=function(a){var b=this.r.currentSession(),c=b.currentSceneState().scene();c!=k&&(a=(new nc(c,a)).create(),Ma(a,function(a){"tincan"!=this.V&&"choice"!=a.type()||("1.2"==this.V&&x(a.D())&&(x(a.s())&&Jb(a,(a.D().indexOf(a.s())+1).toString()),Kb(a,Na(a.D(),function(a,b){return(b+1).toString()},this))),b.scenario().id(),a.id(),a.type(),$c(a,this.j.f))},this))};
function Wc(a,b){b.quizStateChangeEvent().addHandler(a.Ma,a);b.slidePoolState().forEach(function(b){var d=b.slide().type();Ob(d)&&b.submitEvent().addHandler(a.La,a)})}function Tc(a,b){b.quizStateChangeEvent().removeHandler(a.Ma,a);b.slidePoolState().forEach(function(b){var d=b.slide().type();Ob(d)&&b.submitEvent().removeHandler(a.La,a)})}q.Ga=function(a,b){b&&Tc(this,b);Wc(this,a)};
q.Ma=function(a){if("inProgress"==a){a=this.v.currentSession();var b="graded"==a.quiz().type()?new Dc(a.quizPassed(),a.maxScore(),a.awardedScore(),a.awardedPercent()):new Dc(i),c=this.g.view().playbackController().currentSlideIndex();this.i.z[c+""]=b;b=new Bc;b.duration=a.testDuration();"graded"==a.quiz().type()&&(b.Wa=0,b.maxScore=a.maxScore(),b.awardedScore=a.awardedScore(),b.ba=a.quizPassed());a.quiz().id();a.quiz().title();Yc(this)}};
q.La=function(a){var b=this.v.currentSession();if(a.initiated()&&(a=jc(a.slide().type(),this.V).create(a))){if("1.2"==this.V&&"choice"==a.type()){for(var c=[],d=0;d<a.k.choices().count();d++)c.push(a.k.choices().getChoice(d).id());Kb(a,Na(a.D(),function(a){return(c.indexOf(a)+1).toString()},this));Jb(a,(c.indexOf(a.s())+1).toString())}b.quiz().id();a.id();$c(a,this.j.f)}};q.Fa=function(a){a.preventAction();this.Ua()};q.na=function(){this.C.kb&&alert(this.C.message());this.C.ia&&Qc(this)};
q.Ka=function(a){a.actionPrevented()||(a.preventAction(),Sc(this))};function Vc(a,b,c){this.M=a;this.bb=b;this.Xa=c}Vc.prototype.id=p("M");Vc.prototype.name=p("bb");Vc.prototype.email=p("Xa");var $={id:"id",type:"type",score:"weighting",ob:"correct_responses.%INDEX%.pattern",s:"student_response",result:"result",duration:"latency",za:"time"},ad={};
function $c(a,b){var c=a.id(),d=-1;a.id()in ad?d=ad[c]:(d=parseInt(Pc(b,"cmi.interactions._count"),10),d=250<=d?-1:d,ad[c]=d);if(!(0>d)){c="cmi.interactions."+d+".";Z(b,c+$.id,a.id());Z(b,c+$.type,a.type());Z(b,c+$.score,a.score());for(var d=a.D()||[],e=0;e<d.length;++e){var f=$.ob.replace("%INDEX%",e);Z(b,c+f,d[e])}(d=a.s())&&Z(b,c+$.s,d);Z(b,c+$.result,a.result());d=a.duration();d===k||Z(b,c+$.duration,zc(d/1E3));d=a.za();d===k||Z(b,c+$.za,zc(3600*d.getHours()+60*d.getMinutes()+d.getSeconds()))}}
;function bd(a){this.f=a}bd.prototype.S=function(){try{return dd(this.f.LMSInitialize(""))}catch(a){}return n};bd.prototype.terminate=function(a){Z(this,"cmi.core.exit",a?"suspend":"");try{return dd(this.f.LMSFinish(""))}catch(b){}return n};bd.prototype.ua=function(){try{return dd(this.f.LMSCommit(""))}catch(a){}return n};function Pc(a,b){try{return a.f.LMSGetValue(b)}catch(c){}return""}
function Z(a,b,c){if("number"==typeof c){var d;(d=v(d)?d:i)?c=parseFloat(c.toFixed(2))+"":(d=Math.pow(10,2),c=Math.round(c*d)/d+"");c+=""}try{a.f.LMSSetValue(b,c)}catch(e){}}function dd(a){return"true"==a};function ed(){}u("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d;fd||(fd=new ed);d=fd;var e=d.Da[a];if(e==k)return"";delete d.Da[a];db(function(){if(b)e.onload(c);else e.onerror()});return"ok"},h);var fd=k;ed.prototype.Da={};function gd(a){this.oa=a.oa}u("iSpring.LMSAPI.Scorm12Api",gd,h);q=gd.prototype;q.f=k;q.S=function(a,b){var c=yc();(this.f=c?new bd(c):k)&&this.f.S()?a&&a():b&&b()};q.start=function(){};q.ua=function(){this.f.ua()};q.suspend=function(){this.f.terminate(i);Ac();nb()};q.terminate=function(){this.f.terminate(n);Ac();nb()};q.T=function(a,b,c,d){Z(this.f,"cmi.core.score.min",b);Z(this.f,"cmi.core.score.max",c);Z(this.f,"cmi.core.score.raw",d)};})();
var LZString={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return"";var t="";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return"";var t="",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|a>>4;s=(a&15)<<4|f>>2;o=(f&3)<<6|l;if(n%2==0){r=i<<8;if(f!=64){t+=h(r|s)}if(l!=64){r=o<<8}}else{t=t+h(r|i);if(f!=64){r=s<<8}if(l!=64){t+=h(r|o)}}n+=3}return LZString.decompress(t)},compressToUTF16:function(e){if(e==null)return"";var t="",n,r,i,s=0,o=LZString._f;e=LZString.compress(e);for(n=0;n<e.length;n++){r=e.charCodeAt(n);switch(s++){case 0:t+=o((r>>1)+32);i=(r&1)<<14;break;case 1:t+=o(i+(r>>2)+32);i=(r&3)<<13;break;case 2:t+=o(i+(r>>3)+32);i=(r&7)<<12;break;case 3:t+=o(i+(r>>4)+32);i=(r&15)<<11;break;case 4:t+=o(i+(r>>5)+32);i=(r&31)<<10;break;case 5:t+=o(i+(r>>6)+32);i=(r&63)<<9;break;case 6:t+=o(i+(r>>7)+32);i=(r&127)<<8;break;case 7:t+=o(i+(r>>8)+32);i=(r&255)<<7;break;case 8:t+=o(i+(r>>9)+32);i=(r&511)<<6;break;case 9:t+=o(i+(r>>10)+32);i=(r&1023)<<5;break;case 10:t+=o(i+(r>>11)+32);i=(r&2047)<<4;break;case 11:t+=o(i+(r>>12)+32);i=(r&4095)<<3;break;case 12:t+=o(i+(r>>13)+32);i=(r&8191)<<2;break;case 13:t+=o(i+(r>>14)+32);i=(r&16383)<<1;break;case 14:t+=o(i+(r>>15)+32,(r&32767)+32);s=0;break}}return t+o(i+32)},decompressFromUTF16:function(e){if(e==null)return"";var t="",n,r,i=0,s=0,o=LZString._f;while(s<e.length){r=e.charCodeAt(s)-32;switch(i++){case 0:n=r<<1;break;case 1:t+=o(n|r>>14);n=(r&16383)<<2;break;case 2:t+=o(n|r>>13);n=(r&8191)<<3;break;case 3:t+=o(n|r>>12);n=(r&4095)<<4;break;case 4:t+=o(n|r>>11);n=(r&2047)<<5;break;case 5:t+=o(n|r>>10);n=(r&1023)<<6;break;case 6:t+=o(n|r>>9);n=(r&511)<<7;break;case 7:t+=o(n|r>>8);n=(r&255)<<8;break;case 8:t+=o(n|r>>7);n=(r&127)<<9;break;case 9:t+=o(n|r>>6);n=(r&63)<<10;break;case 10:t+=o(n|r>>5);n=(r&31)<<11;break;case 11:t+=o(n|r>>4);n=(r&15)<<12;break;case 12:t+=o(n|r>>3);n=(r&7)<<13;break;case 13:t+=o(n|r>>2);n=(r&3)<<14;break;case 14:t+=o(n|r>>1);n=(r&1)<<15;break;case 15:t+=o(n|r);i=0;break}s++}return LZString.decompress(t)},compress:function(e){if(e==null)return"";var t,n,r={},i={},s="",o="",u="",a=2,f=3,l=2,c="",h=0,p=0,d,v=LZString._f;for(d=0;d<e.length;d+=1){s=e.charAt(d);if(!Object.prototype.hasOwnProperty.call(r,s)){r[s]=f++;i[s]=true}o=u+s;if(Object.prototype.hasOwnProperty.call(r,o)){u=o}else{if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}r[o]=f++;u=String(s)}}if(u!==""){if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}while(true){h=h<<1;if(p==15){c+=v(h);break}else p++}return c},decompress:function(e){if(e==null)return"";if(e=="")return null;var t=[],n,r=4,i=4,s=3,o="",u="",a,f,l,c,h,p,d,v=LZString._f,m={string:e,val:e.charCodeAt(0),position:32768,index:1};for(a=0;a<3;a+=1){t[a]=a}l=0;h=Math.pow(2,2);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(n=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 2:return""}t[3]=d;f=u=d;while(true){if(m.index>m.string.length){return""}l=0;h=Math.pow(2,s);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(d=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 2:return u}if(r==0){r=Math.pow(2,s);s++}if(t[d]){o=t[d]}else{if(d===i){o=f+f.charAt(0)}else{return null}}u+=o;t[i++]=f+o.charAt(0);r--;f=o;if(r==0){r=Math.pow(2,s);s++}}}};if(typeof module!=="undefined"&&module!=null){module.exports=LZString}
